import { 
    get,post
} from "./http"

// 登录
export let reqLogin = (params) =>post("/api/login",params)
// 注册
export let reqRegister = (params) =>post("/api/register",params)
// 新人专享
export let reqGetnew = (params) =>get("/api/getnew",params)
// 万人团
export let reqGetgroupon = (params) =>get("/api/getgroupon",params)
// 倒计时
export let reqGetcountdown = (params) =>get("/api/getcountdown",params)
// 秒杀
export let reqGetseckill = (params) =>get("/api/getseckill",params)
// 获取商品信息首页
export let reqGetindexgoods = (params) =>get("/api/getindexgoods",params)



// 获取商品分类
export let reqGetcate = (params) =>get("/api/getcate",params)
// 获取分类商品
export let reqGetgoods = (params) =>get("/api/getgoods",params)
// 优惠券
export let reqGetcoupon = (params) =>get("/api/getcoupon",params)


// 购物车列表
export let reqCartlist = (params) =>get("/api/cartlist",params)
//购物车添加
export let reqCartadd = (params) =>post("/api/cartadd",params)


// 购物车删除
export let reqCartdelete = (params) =>post("/api/cartdelete",params)
// 获取轮播图信息（我的）
export let reqGetbanner = (params) =>get("/api/getbanner",params)
// 购物车修改
export let reqCartedit = (params) =>post("/api/cartedit",params)
// 商品详情
export let reqGetgoodsinfo = (params) =>get("/api/getgoodsinfo",params)

